﻿(function () {
    var demoModule = angular.module("demoModule", []);
    demoModule.controller("DefaultController", function ($scope, $http) {
        var call_url = "https://careerteacher-uat.impellam.com/Service.svc/TimesheetDetails";
        //$http.jsonp("https://careerteacher-uat.impellam.com/Service.svc/TimesheetDetails?timesheetID=384332&placementID=184399").success(function (data) {
        //    alert(data);
        //}).error(function () {
        //    alert(er);
        //});

        $http.jsonp(call_url, { params: { timesheetID: '384332', placementID: '184399' } }).success(function (data, status, header, config) { alert(status); }).error(function (data, status, header, config) { alert(status); });
        


        $scope.RootObject = {

            TimeList:{code :"Singapore",description :"Singapore Airport"},
            
            DateList:{code :"",description:""},

            CurrencyList:{code :'',description :""},

            HeightList:{code :'',description :""},

            WeightList:{code :'',description :""},
            
            AppCode:{code :'',description :""},

            AllowOverrideList:{code :'',description :""},

            ThresholdList: { code: '', description: "" },

            time: '',

            date: '',

            currency: '',

            height: '',

            weight: '',

            application: '',

            threshold: '',

            allowOverride: '',

            welcomemessage :''
        };
    });
})();

